package com.springcloudalibaba.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: TongRui乀
 * @Date: 2019-11-26 11:02
 * @description：  Sentinel 对 feign的资源定义为 GET:http://service-provider/echo/{str}
 */
@FeignClient(name = "Nacos-discovery-provider")
public interface NacosFeign {

    @GetMapping(value = "/echo/{string}")
    String echo(@PathVariable("string") String string);

}
